<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 邮箱  xxxx@xxx.xxx
        const reg1 = /^.+@.+\..+$/;
        console.log(reg1.test('jack@qq.com'));
        console.log(reg1.test('xyz@gg.lll'));
        console.log(reg1.test('xyz@g'));

        // 手机
        const reg2 = /^1[3-9]\d{9}$/;
        console.log(reg2.test('18013456876'));
        console.log(reg2.test('1801345687'));
        console.log(reg2.test('11013456876'));


        // /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/

        // /^(?:(?:\+|00)86)?1[3-9]\d{9}$/





    </script>
</body>

</html>